package com.example.invoicing.service;

import com.example.invoicing.dao.SalesRecordMapper;
import com.example.invoicing.dao.SupplierMapper;
import com.example.invoicing.pojo.SalesRecord;
import com.example.invoicing.pojo.Supplier;
import com.example.invoicing.pojo.Warehouse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupplierService {
    @Autowired
    private SupplierMapper supplierMapper;

    public int deleteByPrimaryKey(String id){
        return supplierMapper.deleteByPrimaryKey(id);
    }


    public int insertSelective(Supplier record){
        return supplierMapper.insertSelective(record);
    }

    public Supplier selectByPrimaryKey(String id){
        return supplierMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Supplier record){
        return supplierMapper.updateByPrimaryKeySelective(record);
    }

    public List<Supplier> querySupplierList(Supplier record){
        return supplierMapper.querySupplierList(record);
    }

    public int queryCountLike(Supplier record){
        return supplierMapper.queryCountLike(record);
    }
}
